.home {
    font-size: 0.35rem;
    padding: 0.15rem;
    height: calc(100vh - 0.3rem - 0.8rem);
    position: relative;
    .header {
        text-align: center;
        height: 0.6rem;
        line-height: 0.6rem;
        font-size: 0.3rem;
        padding-bottom: 0.15rem;
    }
    .main {
        height: calc(100% - 1.45rem);
        overflow: auto;
        .list {
            margin: 0.3rem 0;
            position: relative;
            font-size: 0.3rem;
            user-select: none;
            .time {
                position: absolute;
                top: -0.36rem;
                left: 50%;
                transform: translateX(-50%);
                font-size: 0.25rem;
            }
            .avator {
                width: 0.85rem;
                height: 0.85rem;
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    border-radius: 50%;
                }
            }
            .username {
                position: absolute;
                font-size: 0.25rem;
                width: 3rem;
                .multi-line-text-truncate(1);
            }
            @userBg: #ededed;
            @userOwnBg: #1bb2e9;
            .leftArrow() {
                &::after {
                    position: absolute;
                    content: '';
                    display: block;
                    width: 0.22rem;
                    height: 0.2rem;
                    background: @userBg;
                    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
                    left: -0.2rem;
                    top: 0.1rem;
                }
            }
            .rightArrow() {
                &::after {
                    position: absolute;
                    content: '';
                    text-align: right;
                    display: block;
                    width: 0.22rem;
                    height: 0.2rem;
                    background: @userOwnBg;
                    clip-path: polygon(0% 0%, 0% 100%, 50% 50%);
                    right: -0.2rem;
                    top: 0.1rem;
                }
            }
            .message {
                max-width: 3rem;
                background: @userBg;
                border-radius: 0.08rem;
                padding: 0.15rem;
                margin-top: 0.35rem;
                position: relative;
                word-wrap:break-word;
            }

            .message-img {
                width: 2.5rem;
                object-fit: cover;
                max-height: 4rem;
                margin-left: 0.2rem;
                margin-top: 0.35rem;
                border-radius: 0.08rem;
            }
            .user {
                display: flex;
                margin-top: 0.6rem;
                position: relative;

                .message {
                    margin-left: 0.2rem;
                    .leftArrow();
                }

                .username {
                    left: 1.1rem;
                }
            }
            .user-own {
                display: flex;
                justify-content: flex-end;
                margin-top: 0.6rem;
                position: relative;
                .message {
                    background: @userOwnBg;
                    margin-right: 0.2rem;
                    .rightArrow();
                }

                .message-img {
                    width: 2.5rem;
                    object-fit: cover;
                    max-height: 4rem;
                    margin-right: 0.2rem;
                    margin-top: 0.35rem;
                }

                .username {
                    right: 1.1rem !important;
                    text-align: right;
                }
            }
        }


        .new-message {
            position: absolute;
            bottom: 1rem;
            left: 0.8rem;
            width: 2.5rem;
            height: 0.4rem;
            line-height: 0.4rem;
            font-size: 0.27rem;
            border-radius: 0.08rem;
            background: #37e85289;
            text-align: center;
            color: white;
        }
    }
    .footer {
        height: 0.7rem;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        .el-input {
            margin-right: 0.2rem;
        }
    }
}


.drawer {
    .userlist {
        padding: 0.3rem 0.4rem;
        display: flex;
        font-size: 0.28rem;
        .avator {
            width: 0.8rem;
            height: 0.8rem;
            margin-right: 0.3rem;
            img {
                width: 100%;
                height: 100%;
                border-radius: 50%;
                filter: brightness(100%);
                object-fit: cover;
            }
        }
    }
}